package com.lee.mybatis.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lee.mybatis.model.ClassEntity;
import com.lee.mybatis.model.StudentEntity;

public interface StudentMapper {
	
	public StudentEntity getStudent(String studentID);  
	
	public List<StudentEntity> getStudentListWhereParam(
			@Param(value="sex") String sex,
			@Param(value="name") String name,
			@Param(value = "classEntity") ClassEntity classEntity);  
    
	public List<StudentEntity> getStudentListUseTrimTag(
			@Param(value="sex") String sex,
			@Param(value="name") String name,
			@Param(value = "classEntity") ClassEntity classEntity);
	
	public int updateStudent_if_trim(StudentEntity studentEntity);
	
    public StudentEntity getStudentAndClass(String studentID);  
      
    public List<StudentEntity> getStudentAll();  
      
    public void insertStudent(StudentEntity entity);  
      
    public void deleteStudent(StudentEntity entity);  
      
    public void updateStudent(StudentEntity entity);
    
    public List<StudentEntity> getStudentListByClassIds_foreach_array(String[] classIds);
    
    public List<StudentEntity> getStudentListByClassIds_foreach_list(List<String> classIdList);

	public List<StudentEntity> getStudentListByClassIds_foreach_map(Map<String, Object> param);
    
}
